<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Serf-1.3.9
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;17.&nbsp;Networking Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="rpcsvc-proto.html" title=
          "rpcsvc-proto-1.4.1">Prev</a>
          <p>
            rpcsvc-proto-1.4.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="uhttpmock.html" title=
          "uhttpmock-0.5.1">Next</a>
          <p>
            uhttpmock-0.5.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="serf" name="serf"></a>Serf-1.3.9
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Serf
        </h2>
        <p>
          The <span class="application">Serf</span> package contains a
          C-based HTTP client library built upon the Apache Portable Runtime
          (APR) library. It multiplexes connections, running the read/write
          communication asynchronously. Memory copies and transformations are
          kept to a minimum to provide high performance operation.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://archive.apache.org/dist/serf/serf-1.3.9.tar.bz2">https://archive.apache.org/dist/serf/serf-1.3.9.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 370a6340ff20366ab088012cd13f2b57
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 144 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 3.2 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Serf Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../general/apr-util.html" title=
          "Apr-Util-1.6.1">Apr-Util-1.6.1</a> and <a class="xref" href=
          "../general/scons.html" title="SCons-3.1.2">SCons-3.1.2</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../postlfs/mitkrb.html" title=
          "MIT Kerberos V5-1.18">MIT Kerberos V5-1.18</a>, for the GSSAPI
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/serf">http://wiki.linuxfromscratch.org/blfs/wiki/serf</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Serf
        </h2>
        <p>
          Install <span class="application">Serf</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">sed -i "/Append/s:RPATH=libdir,::"          SConstruct &amp;&amp;
sed -i "/Default/s:lib_static,::"           SConstruct &amp;&amp;
sed -i "/Alias/s:install_static,::"         SConstruct &amp;&amp;
sed -i "/  print/{s/print/print(/; s/$/)/}" SConstruct &amp;&amp;
sed -i "/get_contents()/s/,/.decode()&amp;/"    SConstruct &amp;&amp;

scons PREFIX=/usr</kbd>
</pre>
        <p>
          This package does not come with a functional testsuite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">scons PREFIX=/usr install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -i "..."</strong></span>: The
          first command removes the runtime path from a shared library and
          the next two commands disable building and installing of the static
          library. The fourth command corrects for changes in scons-3.x. The
          last command allows to use <span class="application">Python
          3</span>.
        </p>
        <p>
          <code class="option">GSSAPI=/usr</code>: Use this switch if you
          have installed a GSSAPI library and you want <span class=
          "application">serf</span> to use it.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libserf-1.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/include/serf-1</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="libserf-1" name="libserf-1"></a><span class=
                    "term"><code class="filename">libserf-1.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the <span class="application">Serf</span> API
                    functions.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 14:12:55 -0600
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="rpcsvc-proto.html" title=
          "rpcsvc-proto-1.4.1">Prev</a>
          <p>
            rpcsvc-proto-1.4.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="uhttpmock.html" title=
          "uhttpmock-0.5.1">Next</a>
          <p>
            uhttpmock-0.5.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="netlibs.html" title=
          "Chapter&nbsp;17.&nbsp;Networking Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
